package com.esm.sm800.database.dbmodel;


import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

//针组信息
@Entity
public class Needle {

    @Id(autoincrement = true)
    private Long id;

    private String name = "";

    private String img = "";//图片

    private int kuanshi = 0; //0-园头 1-燕尾

    private int length = 0; //长度

    private int zhijing = 16; //直径10~16

    private int position = 0;//仓位

    private int stock = 0; //库存

    private int status = 0; //0-正常 1-禁用

    private int warning_num = 0; //报警数

    private String creat_time = "";

    private String update_time = "";

    @Generated(hash = 1526278582)
    public Needle(Long id, String name, String img, int kuanshi, int length,
            int zhijing, int position, int stock, int status, int warning_num,
            String creat_time, String update_time) {
        this.id = id;
        this.name = name;
        this.img = img;
        this.kuanshi = kuanshi;
        this.length = length;
        this.zhijing = zhijing;
        this.position = position;
        this.stock = stock;
        this.status = status;
        this.warning_num = warning_num;
        this.creat_time = creat_time;
        this.update_time = update_time;
    }

    @Generated(hash = 1863881927)
    public Needle() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return this.img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getKuanshi() {
        return this.kuanshi;
    }

    public void setKuanshi(int kuanshi) {
        this.kuanshi = kuanshi;
    }

    public int getLength() {
        return this.length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getZhijing() {
        return this.zhijing;
    }

    public void setZhijing(int zhijing) {
        this.zhijing = zhijing;
    }

    public int getPosition() {
        return this.position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getStock() {
        return this.stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getWarning_num() {
        return this.warning_num;
    }

    public void setWarning_num(int warning_num) {
        this.warning_num = warning_num;
    }

    public String getCreat_time() {
        return this.creat_time;
    }

    public void setCreat_time(String creat_time) {
        this.creat_time = creat_time;
    }

    public String getUpdate_time() {
        return this.update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }
}
